<?PHP
class webPage extends webControl
{
	var $page;
	var $template;
	function webPage()
	{
		//parent::webControl();

		$this->page = $this;
	}
	
	public function setTitle($title)
	{
		if ( empty($this->template) )
		{
			$this->title->text = $title;
		}
		else
		{
			$this->template->title->text = $title;
		}
	}
}
?>
